<!doctype html><html><head><title>rb.publish.Publisher</title><link href="../../stylesheet.css" rel="stylesheet" type="text/css"></head><body><a href="../../index.html">Home</a><h1>Class rb.publish.Publisher</h1><p>A controller whose job it is to drive the UI for publishing new blog posts.</p>extends <a href="../../goog/Disposable.html">goog.Disposable</a><table class="method-list"><tr><td colspan="2"><strong>Instance Method Summary</strong></td></tr><tr><td class="method-list-cell method-access method-public"></td><td class="method-list-cell method-cell"><code>createNew()</code><br><p class="method-description">Set up an empty blog posting UI.</p></td></tr><tr><td class="method-list-cell method-access method-protected"></td><td class="method-list-cell method-cell"><code>disposeInternal()</code><br><p class="method-description">Deletes or nulls out any references to COM objects, DOM nodes, or other
disposable objects. Classes that extend {@code goog.Disposable} should
override this method.
Not reentrant. To avoid calling it twice, it must only be called from the
subclass' {@code disposeInternal} method. Everywhere else the public
{@code dispose} method must be used.
For example:
<pre>
mypackage.MyClass = function() {
goog.base(this);
// Constructor logic specific to MyClass.
...
};
goog.inherits(mypackage.MyClass, goog.Disposable);

mypackage.MyClass.prototype.disposeInternal = function() {
goog.base(this, 'disposeInternal');
// Dispose logic specific to MyClass.
...
};
</pre></p></td></tr><tr><td class="method-list-cell method-access method-private"></td><td class="method-list-cell method-cell"><code>onPostingFailure_(?rb.publish.PublishCommand.Response status)</code><br><p class="method-description">The onFailure callback given to PublishCommand.</p></td></tr><tr><td class="method-list-cell method-access method-private"></td><td class="method-list-cell method-cell"><code>onPostingSuccess_(?rb.post.BlogPost post, string slug)</code><br><p class="method-description">The onSuccess callback given to PublishCommand.</p></td></tr><tr><td class="method-list-cell method-access method-private"></td><td class="method-list-cell method-cell"><code>onSubmit_(?goog.events.BrowserEvent e)</code><br><p class="method-description">Handles the form's onSubmit event.</p></td></tr><tr><td class="method-list-cell method-access method-private"></td><td class="method-list-cell method-cell"><code>renderNew_(?rb.auth.User user)</code><br><p class="method-description">Got the user.  Render the form.</p></td></tr><tr><td class="method-list-cell method-access method-public"></td><td class="method-list-cell method-cell"><code>tearDown()</code><br><p class="method-description">Tears down the publisher UI.  Saves the current work into the cache so that
if the author returns, they see the form populated as it was when they
left.</p></td></tr></table></body></html>